This Script is meant to replace texture names in the KotOR Model Node ->Mesh -> Main Texture textbox in KBlender. 

To USE
1)In Blender switch to the scripting- text editor (shift+f11)
2)Create a new Text Data Block (ALT N)
2)Paste the script
3)On lines 10 and 11 replace "blue" (make sure to replace "blue" on BOTH lines) with your original texture name AND replace "green" with the new texture. -You can replace just part i.e. bladeblue will become bladegreen, OR specify the whole name (replace "blue" with "bladeblue" and "green" with "testgreen" and blueblade will become testgreen.
4) Run script by pressing play button at top of scripting window or (Alt P)
5) To confirm changes at top of blender select Window -> Toggle Console.